<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        //构造函数是一种特殊的函数，用于创建对象
        function Person(aname, asex) {
            this.name = aname;
            this.sex = asex;
        }
        //使用new关键字来创建对象，这个过程叫实例化，无变量接收的为匿名对象
        console.log(new Person('ArimaMisaki','fale'));;
    </script>
</body>

</html>